package modifier;

/**
 * @since Oct 23, 2017
 */
public class StaticTest2 {

    public static String staticMethodName() {
        return "static method";
    }

    public static void main(String[] args) {
        //[out]: static method
        System.out.println(StaticTest2.staticMethodName());
        StaticTest2 s = new StaticTest2();
        //[out]: static method
        //[hint]: static member accessed via instance reference
        System.out.println(s.staticMethodName());
    }
}
